x86/mm: Simplify promote_l4_table()'s exit semantics
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 9 Oct 2018 12:48:57 +0000 (13:48 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 17 Dec 2019 20:40:57 +0000 (20:40 +0000)
commit704fa1532801bc02c4500462f0b913b3c137db4d
treee9e90b7afec7fef39eedf3fa9297c05f3d88c22e
parentc61c1b49430527ee16fbf5b55aca195c325b1a23
x86/mm: Simplify promote_l4_table()'s exit semantics

promote_l4_table() is different from its lower level helpers, by having an
extra return path out of the middle of the loop in the case of a failure.

Break from the loop, which is consistent with the other helpers, and
functionally equivalent.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm.c